package com.fy.fyspace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fy.fyspace.model.entity.TestUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface TestUserMapper extends BaseMapper<TestUser> {
    /**
     * 批量插入TestUser
     */
    int insertBatchSomeColumn(@Param("list") List<TestUser> list);

    /**
     * 统计每个年龄段的用户数量
     */
    List<Map<String, Object>> statisticsByAge();
}